package com.lms.service;

import com.lms.bean.ReturnRecord;
import com.lms.bean.User;
import com.lms.vo.RentRecordVO;
import com.lms.vo.ReturnRecordVO;

import java.util.List;

public interface ReturnRecordService {

    Long getTotalCount(String username, String bookname);

    public Long getTotalReturnsCount(Long userId, String bookname);

    //返回所有还书记录
    List<ReturnRecordVO> findAll(int page, int pageSize, String username, String bookname);

    //返回所有已借但是没有归还的书的记录
    List<RentRecordVO> findAllReturns(int page, int pageSize, User user, String bookname);

    void deleteById(Long returnId);

    ReturnRecord findById(Long returnId);

    void save(ReturnRecord returnRecord);

    void returnBook(ReturnRecord returnRecord);

    void deleteAll(List<Long> ids);

}
